#include "othersendmes.h"
#include "ui_othersendmes.h"

othersendmes::othersendmes(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::othersendmes)
{
    ui->setupUi(this);
}

othersendmes::~othersendmes()
{
    delete ui;
}

void othersendmes::init(QString image, QString content,QString time,QString content_type)
{
    this->image=image;
    this->content=content;
    this->time=time;
    this->content_type=content_type;
    ui->myimage->setIcon(QPixmap(image));
    ui->sendmes->setPlainText(content);
}

void othersendmes::setimage(QString image)
{
    this->image=image;
    ui->myimage->setIcon(QPixmap(image));
}
